<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>19-Vue文本操作</title>
</head>
<body>
<div id="app">

    <span v-html="msg1"></span><br>
    <span v-text="msg2"></span><br>
    <span>{{msg3}}</span>

</div>

</body>
<script src="/day01/js/vue.js"></script>
<script>

    var vue = new Vue({
        el:"#app",
        data:{
            msg1:"<font color='red'>hello1</font>",
            msg2:"<font color='red'>hello2</font>",
            msg3:"<font color='red'>hello3</font>"
        },
        methods:{

        }
    })

</script>
</html>